package com.zdb.demo.design.pattern.structural.bridge.demo2;

public class SpecialUrgencyMessage extends AbstractMessage {
    public SpecialUrgencyMessage(MessageImplementor messageImplementor) {
        super(messageImplementor);
    }

    @Override
    public void sendMessage(String message, String toUser) {
        message = "特急：" + message;
        super.sendMessage(message, toUser);
        // 还需要增加一条待催促的消息
    }

    public void hurry(String messageId) {
        // 执行催促的业务，发出催促的消息
    }
}
